package com.fengxu.springcloud.service;

import org.springframework.stereotype.Component;

/**
*@Description PaymentHystrixService服务降级后的实现类
*@Author 风珝
*@Date 2021/1/15 23:02
*@Version 1.0.0
*/
@Component
public class PaymentHystrixServiceFallBack implements PaymentHystrixService {
    @Override
    public String payment_ok(Long id) {
        return "尊敬客户，暂时无法提供服务!";
    }

    @Override
    public String payment_timeout() {
        return "尊敬的客户，服务超时，请稍后再试!";
    }
}
